package com.tdogg.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.tdogg.entity.Admins;

@Repository
public interface AdminsMapper {
	Admins findAdminById(Integer id);
	Integer addAdmins(Admins admin);
	Integer deleteAdmin(Integer id);
	Integer disableAdmin(Integer id);
	Integer updateAdmin(Admins admin);
	List<Admins> findAllAdmin();
	List<Admins> findAdminByName(String name);

	List<Admins> findAllByKeywords(@Param("keywords") String keywords);

	int updateAdminState(@Param("adminId") Integer adminId,@Param("adminState") Integer adminState);
}
